package IO流.转换流;

import java.io.*;

public class 字节流读取一整行 {
    public static void main(String[] args) throws IOException {
        //1.创建字节流对象
        FileInputStream fis = new FileInputStream("F\\gbkfile.txt");
        //2.把字节流利用转换流转换为字符输入流
        InputStreamReader fsr=new InputStreamReader(fis,"GBK");
        //3.把字符输入流包装成字符缓冲流
        BufferedReader br=new BufferedReader(fsr);
        System.out.println(br.readLine());

        //4.释放资源
        br.close();
    }
}
